package design.mode.flyweight.item1;

/**
 * @author ZhongMingde on 2021/11/4
 * 棋子
 */

public class ChessPiece {

  private int id;
  private String text;
  private Color color;
  private int positionX;
  private int positionY;

  public ChessPiece(int id, String text, Color color, int positionX, int positionY) {
    this.id = id;
    this.text = text;
    this.color = color;
    this.positionX = positionX;
    this.positionY = positionY;
  }

  public static enum Color {
    RED, BLACK
  }
}
